import request from '@/utils/request'

export const addOneAdminAuth = data => request({
  url: '/addOneAdminAuth',
  method: 'put',
  data: data || {}
})

export const deleteOneAdminAuth = id => request({
  url: '/deleteOneAdminAuth/' + id,
  method: 'delete'
})

export const updateOneAdminAuth = data => request({
  url: '/updateOneAdminAuth',
  method: 'patch',
  data: data || {}
})

export const getOneAdminAuth = id => request({
  url: '/getOneAdminAuth/' + id,
  method: 'get'
})

export const getAdminAuthList = data => request({
  url: '/getAdminAuthList',
  method: 'post',
  data: data || {}
})

export const getAllAdminAuthList = () => request({
  url: '/getAllAdminAuthList',
  method: 'get'
})

